package vn.com.horoscope.activity;

import vn.com.horoscope.R;
import vn.com.horoscope.common.ConstantClass;
import vn.com.horoscope.common.StaticClass;
import vn.com.horoscope.common.Utilities;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class TabWork extends Activity {
	private TextView mTextView;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_tab_work);

		int id =  (Integer) getIntent().getExtras().get(ConstantClass.id);

		String data = StaticClass.getContentData(this, "sunghiep.txt") ;
		String result = Utilities.splitString(data, ""+id);
		this.mTextView = (TextView) findViewById(R.id.txtWork);
		this.mTextView.setText(result);
	}
}